#define _CRT_SECURE_NO_WARNINGS  1

#include<stdio.h>

int main()
{
	int i = 0;
	int j = 0;
	int k = 0;
	int p = 0;
	int arr1[] = {1,2,3,4,5};
	int arr2[] = { 6,7,8,9,10};
	for (i = 0; i < sizeof(arr1)/sizeof(arr1[0]); i++)
	{
		j = arr1[i];
		arr1[i] = arr2[i];
		arr2[i] = j;
	}
	for (k = 0; k < sizeof(arr1) /sizeof(arr1[0]); k++)
	{
		printf("%d ", arr1[k]);
	}
	printf("\n");
	for (p = 0; p < sizeof(arr1)/ sizeof(arr1[0]); p++)
	{
		printf("%d ", arr2[p]);
	}
	return 0;
}
